<div class="list">
    <?php echo form_open('client'); ?>
    <input class="text" name="keyword" value="<?php echo $conditions['keyword']; ?>" />
        <button type="submit">查询</button>
    </form>
    <hr class="space">
    <table>
        <tr>
            <th width="5%">编号</th>
            <th>申请人名称</th>
            <th width="25%">地址</th>
            <th>证照类型</th>
            <th>证照编号</th>
            <th>国家</th>
            <th width="10%">操作</th>
        </tr>
        <?php foreach ($clients as $c): ?>
        <tr>
            <td><?php echo $c['c_id']; ?></td>
            <td>
                <?php echo htmlspecialchars($c['c_name']); ?><br>
                <?php echo htmlspecialchars($c['c_name_en']); ?>
            </td>
            <td>
                <?php echo htmlspecialchars($c['c_addr']); ?><br>
                <?php echo htmlspecialchars($c['c_addr_en']); ?>
            </td>
            <td><?php echo $c['c_licence_type']; ?></td>
            <td><?php echo htmlspecialchars($c['c_licence_number']); ?></td>
            <td><?php echo htmlspecialchars($c['c_country']); ?></td>
            <td>
                <a href="<?php echo site_url('client/update/' . $c['c_id']); ?>">修改</a> | 
                <a href="<?php echo site_url('client/remove/' . $c['c_id']); ?>" 
                   onclick="return confirm('确定要删除申请人 <?php echo $c['c_name']; ?> 吗？');">删除</a> |
                <a href="<?php echo site_url('client/view/' . $c['c_id']); ?>">查看</a>
            </td>
        </tr>
        <?php endforeach; ?>
    </table>
    <?php echo $pagelink; ?>
</div>
<script>
    $(function() {
        $("button:not(.adhere)").button();
    });
</script>
